package com.trex.modules.tbl.replyform.entity;

import javax.validation.constraints.Size;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 检修车回送单Entity
 * @author jy
 * @version 2022-12-09
 */
@Table(name="tbl_xd_jxchsd", alias="a", label="检修车回送单信息", extWhereKeys="extWhere", columns={
		@Column(name="rec_id", attrName="recId", label="检修车单号", isPK=true),
		@Column(name="ljzybh", attrName="ljzybh", label="列检记录编号", isQuery=false),
		@Column(name="wagonno", attrName="wagonno", label="车号", isQuery=false),
		@Column(name="status", attrName="status", label="1列检所确认 2列检调度确认 3 站调确认", isQuery=false),
		@Column(name="wagon_type_code", attrName="wagonTypeCode", label="车种", isQuery=false),
		@Column(name="wagon_type_name", attrName="wagonTypeName", label="车种", isQuery=false),
		@Column(name="wagon_group_code", attrName="wagonGroupCode", label="车组", isQuery=false),
		@Column(name="wagon_group_name", attrName="wagonGroupName", label="车组", queryType=QueryType.LIKE),
		@Column(name="fault_code", attrName="faultCode", label="扣车原因"),
		@Column(name="fault_name", attrName="faultName", label="扣车原因", queryType=QueryType.LIKE),
		@Column(name="station_code", attrName="stationCode", label="当前站", isQuery=false),
		@Column(name="station", attrName="station", label="当前站", isQuery=false),
		@Column(name="area_code", attrName="areaCode", label="当前区", isQuery=false),
		@Column(name="area", attrName="area", label="当前区", isQuery=false),
		@Column(name="yardno_code", attrName="yardnoCode", label="当前场地"),
		@Column(name="yardno", attrName="yardno", label="当前场地", isQuery=false),
		@Column(name="line_code", attrName="lineCode", label="当前线路"),
		@Column(name="line", attrName="line", label="当前线路", isQuery=false),
		@Column(name="send_station_code", attrName="sendStationCode", label="发站", isQuery=false),
		@Column(name="send_station", attrName="sendStation", label="发站", isQuery=false),
		@Column(name="arrive_station_code", attrName="arriveStationCode", label="到站", isQuery=false),
		@Column(name="arrive_station", attrName="arriveStation", label="到站", isQuery=false),
		@Column(name="repair_line_code", attrName="repairLineCode", label="入修地点", isQuery=false),
		@Column(name="repair_line_name", attrName="repairLineName", label="入修地点", isQuery=false),
		@Column(name="repair_method_code", attrName="repairMethodCode", label="维修方式", isQuery=false),
		@Column(name="repair_method", attrName="repairMethod", label="维修方式", isQuery=false),
		@Column(name="repair_method_detail_code", attrName="repairMethodDetailCode", label="维修明细", isQuery=false),
		@Column(name="repair_method_detail", attrName="repairMethodDetail", label="维修明细", isQuery=false),
		@Column(name="speed_limit", attrName="speedLimit", label="限速", isQuery=false),
		@Column(name="is_nopeak", attrName="isNopeak", label="是否禁峰 0否 1是", isQuery=false),
		@Column(name="jcr_code", attrName="jcrCode", label="检车人", isQuery=false),
		@Column(name="jcr_name", attrName="jcrName", label="检车人", isQuery=false),
		@Column(name="remark", attrName="remark", label="备注", isQuery=false),
		@Column(name="station_time", attrName="stationTime", label="车站发起时间", isQuery=false, isUpdateForce=true),
		@Column(name="work_start_time", attrName="workStartTime", label="列检开始时间", isQuery=false, isUpdateForce=true),
		@Column(name="lj_usercode", attrName="ljUsercode", label="列检员", isQuery=false),
		@Column(name="lj_username", attrName="ljUsername", label="列检员", isQuery=false),
		@Column(name="ljdd_usercode", attrName="ljddUsercode", label="列检调度", isQuery=false),
		@Column(name="ljdd_username", attrName="ljddUsername", label="列检调度", isQuery=false),
		@Column(name="ljdd_confirm_time", attrName="ljddConfirmTime", label="列检调度确认时间", isQuery=false, isUpdateForce=true),
		@Column(name="czdd_usercode", attrName="czddUsercode", label="车站调度", isQuery=false),
		@Column(name="czdd_username", attrName="czddUsername", label="车站调度", isQuery=false),
		@Column(name="czdd_confirm_time", attrName="czddConfirmTime", label="车站调度确认时间", isQuery=false, isUpdateForce=true),
		@Column(name="dele_flag", attrName="deleFlag", label="删除标志位", isQuery=false),
		@Column(name="user_code", attrName="userCode", label="更新人", isQuery=false),
		@Column(name="user_name", attrName="userName", label="更新人", isQuery=false),
		@Column(name="upd_time", attrName="updTime", label="更新时间", isQuery=false, isUpdateForce=true),
		@Column(name="ip", attrName="ip", label="IP地址", isQuery=false),
		@Column(name="fault_item_code", attrName="faultItemCode", label="扣车类别", isQuery=false),
		@Column(name="fault_item_name", attrName="faultItemName", label="扣车类别", isQuery=false),
		@Column(name="csbh", attrName="csbh", label="列检所编号", isQuery=false),
	}
)
public class TblXdJxchsd extends DataEntity<TblXdJxchsd> {
	
	private static final long serialVersionUID = 1L;
	private String recId;		// 检修车单号
	private String ljzybh;		// 列检记录编号
	private String wagonno;		// 车号
	private String wagonTypeCode;		// 车种
	private String wagonTypeName;		// 车种
	private String wagonGroupCode;		// 车组
	private String wagonGroupName;		// 车组
	private String faultCode;		// 扣车原因
	private String faultName;		// 扣车原因
	private String stationCode;		// 当前站
	private String station;		// 当前站
	private String areaCode;		// 当前区
	private String area;		// 当前区
	private String yardnoCode;		// 当前场地
	private String yardno;		// 当前场地
	private String lineCode;		// 当前线路
	private String line;		// 当前线路
	private String sendStationCode;		// 发站
	private String sendStation;		// 发站
	private String arriveStationCode;		// 到站
	private String arriveStation;		// 到站
	private String repairLineCode;		// 入修地点
	private String repairLineName;		// 入修地点
	private String repairMethodCode;		// 维修方式
	private String repairMethod;		// 维修方式
	private String repairMethodDetailCode;		// 维修明细
	private String repairMethodDetail;		// 维修明细
	private String speedLimit;		// 限速
	private String isNopeak;		// 是否禁峰 0否 1是
	private String jcrCode;		// 检车人
	private String jcrName;		// 检车人
	private String remark;		// 备注
	private Date stationTime;		// 车站发起时间
	private Date workStartTime;		// 列检开始时间
	private String ljUsercode;		// 列检员
	private String ljUsername;		// 列检员
	private String ljddUsercode;		// 列检调度
	private String ljddUsername;		// 列检调度
	private Date ljddConfirmTime;		// 列检调度确认时间
	private String czddUsercode;		// 车站调度
	private String czddUsername;		// 车站调度
	private Date czddConfirmTime;		// 车站调度确认时间
	private String deleFlag;		// 删除标志位
	private String userCode;		// 更新人
	private String userName;		// 更新人
	private Date updTime;		// 更新时间
	private String ip;		// IP地址
	private String faultItemCode;		// 扣车类别
	private String faultItemName;		// 扣车类别
	private String csbh;		// 列检所编号
	private String status;
	private String userid;
	private String postid;
	private String XLBH;
	private String XLMC;
	private String dqxlbh;

	private String ids;

    private Date startTime;
    private Date endTime;
    private String goodsName;
	private String focusArea;

	public String getFocusArea() {
		return focusArea;
	}

	public void setFocusArea(String focusArea) {
		this.focusArea = focusArea;
	}

	public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	public String getDqxlbh() {
		return dqxlbh;
	}

	public void setDqxlbh(String dqxlbh) {
		this.dqxlbh = dqxlbh;
	}

	public String getXLBH() {
		return XLBH;
	}

	public void setXLBH(String XLBH) {
		this.XLBH = XLBH;
	}

	public String getXLMC() {
		return XLMC;
	}

	public void setXLMC(String XLMC) {
		this.XLMC = XLMC;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public TblXdJxchsd() {
		this(null);
	}
	
	public TblXdJxchsd(String id){
		super(id);
	}
	
	public String getRecId() {
		return recId;
	}

	public void setRecId(String recId) {
		this.recId = recId;
	}
	
//	@Size(min=0, max=20, message="列检记录编号长度不能超过 20 个字符")
	public String getLjzybh() {
		return ljzybh;
	}

	public void setLjzybh(String ljzybh) {
		this.ljzybh = ljzybh;
	}
	

	public String getWagonno() {
		return wagonno;
	}

	public void setWagonno(String wagonno) {
		this.wagonno = wagonno;
	}
	

	public String getWagonTypeCode() {
		return wagonTypeCode;
	}

	public void setWagonTypeCode(String wagonTypeCode) {
		this.wagonTypeCode = wagonTypeCode;
	}
	

	public String getWagonTypeName() {
		return wagonTypeName;
	}

	public void setWagonTypeName(String wagonTypeName) {
		this.wagonTypeName = wagonTypeName;
	}
	

	public String getWagonGroupCode() {
		return wagonGroupCode;
	}

	public void setWagonGroupCode(String wagonGroupCode) {
		this.wagonGroupCode = wagonGroupCode;
	}
	

	public String getWagonGroupName() {
		return wagonGroupName;
	}

	public void setWagonGroupName(String wagonGroupName) {
		this.wagonGroupName = wagonGroupName;
	}
	

	public String getFaultCode() {
		return faultCode;
	}

	public void setFaultCode(String faultCode) {
		this.faultCode = faultCode;
	}
	

	public String getFaultName() {
		return faultName;
	}

	public void setFaultName(String faultName) {
		this.faultName = faultName;
	}
	

	public String getStationCode() {
		return stationCode;
	}

	public void setStationCode(String stationCode) {
		this.stationCode = stationCode;
	}
	

	public String getStation() {
		return station;
	}

	public void setStation(String station) {
		this.station = station;
	}
	

	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}
	

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}
	

	public String getYardnoCode() {
		return yardnoCode;
	}

	public void setYardnoCode(String yardnoCode) {
		this.yardnoCode = yardnoCode;
	}
	

	public String getYardno() {
		return yardno;
	}

	public void setYardno(String yardno) {
		this.yardno = yardno;
	}
	

	public String getLineCode() {
		return lineCode;
	}

	public void setLineCode(String lineCode) {
		this.lineCode = lineCode;
	}
	

	public String getLine() {
		return line;
	}

	public void setLine(String line) {
		this.line = line;
	}
	

	public String getSendStationCode() {
		return sendStationCode;
	}

	public void setSendStationCode(String sendStationCode) {
		this.sendStationCode = sendStationCode;
	}
	

	public String getSendStation() {
		return sendStation;
	}

	public void setSendStation(String sendStation) {
		this.sendStation = sendStation;
	}
	

	public String getArriveStationCode() {
		return arriveStationCode;
	}

	public void setArriveStationCode(String arriveStationCode) {
		this.arriveStationCode = arriveStationCode;
	}
	

	public String getArriveStation() {
		return arriveStation;
	}

	public void setArriveStation(String arriveStation) {
		this.arriveStation = arriveStation;
	}
	

	public String getRepairLineCode() {
		return repairLineCode;
	}

	public void setRepairLineCode(String repairLineCode) {
		this.repairLineCode = repairLineCode;
	}
	

	public String getRepairLineName() {
		return repairLineName;
	}

	public void setRepairLineName(String repairLineName) {
		this.repairLineName = repairLineName;
	}
	

	public String getRepairMethodCode() {
		return repairMethodCode;
	}

	public void setRepairMethodCode(String repairMethodCode) {
		this.repairMethodCode = repairMethodCode;
	}
	

	public String getRepairMethod() {
		return repairMethod;
	}

	public void setRepairMethod(String repairMethod) {
		this.repairMethod = repairMethod;
	}
	

	public String getRepairMethodDetailCode() {
		return repairMethodDetailCode;
	}

	public void setRepairMethodDetailCode(String repairMethodDetailCode) {
		this.repairMethodDetailCode = repairMethodDetailCode;
	}
	

	public String getRepairMethodDetail() {
		return repairMethodDetail;
	}

	public void setRepairMethodDetail(String repairMethodDetail) {
		this.repairMethodDetail = repairMethodDetail;
	}
	

	public String getSpeedLimit() {
		return speedLimit;
	}

	public void setSpeedLimit(String speedLimit) {
		this.speedLimit = speedLimit;
	}
	

	public String getIsNopeak() {
		return isNopeak;
	}

	public void setIsNopeak(String isNopeak) {
		this.isNopeak = isNopeak;
	}
	
//	@Size(min=0, max=10, message="检车人长度不能超过 10 个字符")
	public String getJcrCode() {
		return jcrCode;
	}

	public void setJcrCode(String jcrCode) {
		this.jcrCode = jcrCode;
	}
	

	public String getJcrName() {
		return jcrName;
	}

	public void setJcrName(String jcrName) {
		this.jcrName = jcrName;
	}
	

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getStationTime() {
		return stationTime;
	}

	public void setStationTime(Date stationTime) {
		this.stationTime = stationTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getWorkStartTime() {
		return workStartTime;
	}

	public void setWorkStartTime(Date workStartTime) {
		this.workStartTime = workStartTime;
	}
	

	public String getLjUsercode() {
		return ljUsercode;
	}

	public void setLjUsercode(String ljUsercode) {
		this.ljUsercode = ljUsercode;
	}
	

	public String getLjUsername() {
		return ljUsername;
	}

	public void setLjUsername(String ljUsername) {
		this.ljUsername = ljUsername;
	}
	

	public String getLjddUsercode() {
		return ljddUsercode;
	}

	public void setLjddUsercode(String ljddUsercode) {
		this.ljddUsercode = ljddUsercode;
	}
	

	public String getLjddUsername() {
		return ljddUsername;
	}

	public void setLjddUsername(String ljddUsername) {
		this.ljddUsername = ljddUsername;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getLjddConfirmTime() {
		return ljddConfirmTime;
	}

	public void setLjddConfirmTime(Date ljddConfirmTime) {
		this.ljddConfirmTime = ljddConfirmTime;
	}
	

	public String getCzddUsercode() {
		return czddUsercode;
	}

	public void setCzddUsercode(String czddUsercode) {
		this.czddUsercode = czddUsercode;
	}
	

	public String getCzddUsername() {
		return czddUsername;
	}

	public void setCzddUsername(String czddUsername) {
		this.czddUsername = czddUsername;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCzddConfirmTime() {
		return czddConfirmTime;
	}

	public void setCzddConfirmTime(Date czddConfirmTime) {
		this.czddConfirmTime = czddConfirmTime;
	}
	

	public String getDeleFlag() {
		return deleFlag;
	}

	public void setDeleFlag(String deleFlag) {
		this.deleFlag = deleFlag;
	}
	

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdTime() {
		return updTime;
	}

	public void setUpdTime(Date updTime) {
		this.updTime = updTime;
	}
	

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}
	

	public String getFaultItemCode() {
		return faultItemCode;
	}

	public void setFaultItemCode(String faultItemCode) {
		this.faultItemCode = faultItemCode;
	}
	

	public String getFaultItemName() {
		return faultItemName;
	}

	public void setFaultItemName(String faultItemName) {
		this.faultItemName = faultItemName;
	}
	

	public String getCsbh() {
		return csbh;
	}

	public void setCsbh(String csbh) {
		this.csbh = csbh;
	}
	
	// 大于等于 <=
	public Date getWorkStartTime_gte(){
		return sqlMap.getWhere().getValue("work_start_time", QueryType.GTE);
	}

	public void setWorkStartTime_gte(Date workStartTime){
		sqlMap.getWhere().and("work_start_time", QueryType.GTE, workStartTime);
	}

	// 小于等于 <=
	public Date getWorkStartTime_lte(){
		return sqlMap.getWhere().getValue("work_start_time", QueryType.LTE);
	}

	public void setWorkStartTime_lte(Date workStartTime){
		sqlMap.getWhere().and("work_start_time", QueryType.LTE, workStartTime);
	}
	
	//like
	public String getWagonno_like() {
		return sqlMap.getWhere().getValue("wagonno", QueryType.LIKE);
	}

	public void setWagonno_like(String wagonno) {
		sqlMap.getWhere().and("wagonno", QueryType.LIKE, wagonno);
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getPostid() {
		return postid;
	}

	public void setPostid(String postid) {
		this.postid = postid;
	}
}